package com.zhsj.OkeHomeConsumption.ui.fragment;

import android.os.Bundle;
import android.view.KeyEvent;

import com.zhsj.OkeHomeConsumption.R;
import com.zhsj.OkeHomeConsumption.empty.FormalUserInfo;
import com.zhsj.OkeHomeConsumption.empty.ShareMemberBean;

import me.yokeyword.fragmentation.SupportActivity;


/**
 * <p>文件描述：<p>
 * <p>作者：xingdx<p>
 * <p>创建时间：2019/1/15<p>
 * <p>更改时间：2019/1/15<p>
 */
public class SharedWebviewActivity extends SupportActivity {
    private FormalUserInfo userInfo = null;
    private ShareMemberBean.DataBeanX.DataBean item = null;
    private int type = 0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        userInfo =(FormalUserInfo) getIntent().getSerializableExtra("userInfo");
        item =(ShareMemberBean.DataBeanX.DataBean) getIntent().getSerializableExtra("item");
        type = getIntent().getIntExtra("type",0);
        setContentView(R.layout.index_medecorate_fragment);
            loadMultipleRootFragment(R.id.medecorate_layout, 0,  SharedWebviewTwo.newInstance(item,userInfo,0));
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
//        if (keyCode == KeyEvent.KEYCODE_BACK) {
//            MainActivity.HideHomeBarHanlder.sendEmptyMessage(1);
//        }
        return super.onKeyDown(keyCode, event);
    }
}
